home *** CD-ROM | disk | FTP | other *** search
/ Amiga Format CD 46 / Amiga Format CD46 (1999-10-20)(Future Publishing)(GB)[!][issue 1999-12].iso / -in_the_mag- / reader_requests / scilab / demos / lmitool / testlinprog < prev    next >
Text File  |  1999-09-16  |  201b  |  14 lines

  1. getf(SCI+'/demos/lmitool/linprog.sci','c')
  2. rand('seed',0);
  3. //rand('normal')
  4. n=10;nc=6;
  5. A=eye(n,n);
  6. b=zeros(n,1);
  7. C=rand(nc,n);
  8. d=-C*ones(n,1);
  9. c=rand(n,1);
  10. x0=rand(c);
  11. [x,cout]=linprog(A,b,C,d,c,x0)
  12.  
  13.  
  14.